<template>
    <div>
        <h2>搜索记录</h2>
        <!--离线存储-->
        <ul>
            <slot>
            </slot>


        </ul>
    </div>
</template>

<script>
    export default {
        data(){
            return{}
        },
        methods:{
            dellocalStoragel(i){
                let arr = JSON.parse(localStorage.getItem('singer')) || [];
                arr.splice(i,1)
                localStorage.setItem('singer',JSON.stringify(arr))

            }
        }
    }
</script>

<style scoped>
    h2{
        padding: 5px 20px;
        font-weight: normal;
        font-size: 14px;
    }
li{
    height: 40px;
    border-bottom: 1px solid gainsboro;
    line-height: 40px;
    color: #333333;
    font-size: 13px;
    padding: 0 25px;
    position: relative;
}
    li>span{
        position: absolute;
        right: 25px;
        top: 50%;
        transform: translateY(-50%);
    }
</style>